php convert degrees to radians

217

php convert degrees to radians -

//converts a given degree to a radians value
<?php
deg2rad(45); // 0.785398163397


php radians to degrees -

//converst radians number into degrees
<?php
echo rad2deg(M_PI_4); // 45
?>

Comments

Submit
0 Comments